package com.bsoft.gol.hcs.clinical.entity;

import ctd.schema.annotation.Dictionary;
import ctd.schema.annotation.Schema;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @description:
 * @author: zhengcb10708
 * @create: 2021-04-21 16:54
 **/
@Entity
@Table(name = "consult_ask")
@Schema
public class ConsultAskEx {
    private String consultId;
    private String title;
    private String orgId;
    private String orgName;
    private String deptId;
    private String localDeptId;
    private String deptName;
    private String consultType;
    private String createUserId;
    private String consultMpiId;
    private String personName;
    private int age;
    private String gender;
    private String phoneNo;
    private String doctorId;
    private String localDoctorId;
    private String doctorName;
    @Dictionary(id="pcn.base.dictionary.doctorTitle")
    private String level;
    private BigDecimal price;
    private String question;
    private String diagnosis;
    private Date createTime;
    private Date acceptExpireTime;
    private Date payExpireTime;
    private Date consultExpireTime;
    //1 超时取消 2 用户取消 3 医生取消
    private int cancelType;
    private Date cancelTime;
    private Date finishedTime;
    private Date lastModifyTime;
    //10 待支付;11 已完成;12 用户取消;13 已退款; 14 超时取消 15已评价16医生取消 99 已删除    图文&复诊咨询状态   21待接诊22进行中
    private int consultStatus;
    private String tradeNo;
    private String refundStatus;
    private String medInsurance;
    private String pharmacyCode;
    private String cancelReason;
    private String hisPreVisitNo;
    private String visitNo;
    private String registeredSeriaNo;
    private Date receptionConfirmTime;
    private String drugs;
    private String drugNames;
    private String roomId;
    private String scheduleId;
    private String consultAskPhoneNo;
    private String supervisonUploadFlag;
    private Date supervisonUploadTime;
    private String photoIds;
    private int evaluationId;
    private int startConsultFlag;
    private String confirmedDiagnosis;
    private String pastConsultation;
    private String pastRecordId;
    private String pastLocalOrgId;
    private int prescriptionStatus;//0 未下处方   1 未下单，可以下单   2 已下单，无法再创建订单
    private int prescriptionOrderFlag;//0 无药品订单   1 未下单   2 已下单
    private String readFlag;//消息是否已读标志   1 已读    0 未读
    private Date appointmentDate;//预约时间
    private String appointmentTimes;//预约时间段
    private String visitPlace;//就诊地点
    private String historyDiagnosis;
    private String receptionStatus;//接诊状态 1:正在接诊(正在通话或者视频)  2:接诊中(未进行通话或者视频)
    private Integer appointmentNumber;//预约序号
    private String applyOrgId;//申请机构id
    private String applyOrgName;//申请机构名称
    private String applyDeptId;//申请科室id
    private String applyDeptName;//申请科室名称
    private String applyDoctorId;//申请医生id
    private String applyDoctorName;//申请医生名称
    private byte timeFlag;
    private String patientCode;
    private String patientIdentityCardType;
    private String patientIdentityCardNumber;
    private String patientMedicalCardType;
    private String patientMedicalCardNumber;
    //平台mpi
    private String platformMpi;
    //门诊科室代码，提交处方时使用
    private String outpatientDeptCode;

    @Id
    @Column(name = "consultId")
    public String getConsultId() {
        return consultId;
    }

    public void setConsultId(String consultId) {
        this.consultId = consultId;
    }

    @Basic
    @Column(name = "title")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "orgId")
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    @Basic
    @Column(name = "orgName")
    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    @Basic
    @Column(name = "deptId")
    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    @Basic
    @Column(name = "localDeptId")
    public String getLocalDeptId() {
        return localDeptId;
    }

    public void setLocalDeptId(String localDeptId) {
        this.localDeptId = localDeptId;
    }

    @Basic
    @Column(name = "deptName")
    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Basic
    @Column(name = "consultType")
    public String getConsultType() {
        return consultType;
    }

    public void setConsultType(String consultType) {
        this.consultType = consultType;
    }

    @Basic
    @Column(name = "createUserId")
    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Basic
    @Column(name = "consultMpiId")
    public String getConsultMpiId() {
        return consultMpiId;
    }

    public void setConsultMpiId(String consultMpiId) {
        this.consultMpiId = consultMpiId;
    }

    @Basic
    @Column(name = "personName")
    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    @Basic
    @Column(name = "age")
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Basic
    @Column(name = "gender")
    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Basic
    @Column(name = "phoneNo")
    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    @Basic
    @Column(name = "doctorId")
    public String getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(String doctorId) {
        this.doctorId = doctorId;
    }

    @Basic
    @Column(name = "localDoctorId")
    public String getLocalDoctorId() {
        return localDoctorId;
    }

    public void setLocalDoctorId(String localDoctorId) {
        this.localDoctorId = localDoctorId;
    }

    @Basic
    @Column(name = "doctorName")
    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }


    @Basic
    @Column(name = "level")
    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Basic
    @Column(name = "price")
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Basic
    @Column(name = "question")
    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    @Basic
    @Column(name = "diagnosis")
    public String getDiagnosis() {
        return diagnosis;
    }

    public void setDiagnosis(String diagnosis) {
        this.diagnosis = diagnosis;
    }

    @Basic
    @Column(name = "createTime")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "acceptExpireTime")
    public Date getAcceptExpireTime() {
        return acceptExpireTime;
    }

    public void setAcceptExpireTime(Date acceptExpireTime) {
        this.acceptExpireTime = acceptExpireTime;
    }

    @Basic
    @Column(name = "payExpireTime")
    public Date getPayExpireTime() {
        return payExpireTime;
    }

    public void setPayExpireTime(Date payExpireTime) {
        this.payExpireTime = payExpireTime;
    }

    @Basic
    @Column(name = "consultExpireTime")
    public Date getConsultExpireTime() {
        return consultExpireTime;
    }

    public void setConsultExpireTime(Date consultExpireTime) {
        this.consultExpireTime = consultExpireTime;
    }

    @Basic
    @Column(name = "cancelType")
    public int getCancelType() {
        return cancelType;
    }

    public void setCancelType(int cancelType) {
        this.cancelType = cancelType;
    }

    @Basic
    @Column(name = "cancelTime")
    public Date getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(Date cancelTime) {
        this.cancelTime = cancelTime;
    }

    @Basic
    @Column(name = "finishedTime")
    public Date getFinishedTime() {
        return finishedTime;
    }

    public void setFinishedTime(Date finishedTime) {
        this.finishedTime = finishedTime;
    }

    @Basic
    @Column(name = "lastModifyTime")
    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    @Basic
    @Column(name = "consultStatus")
    public int getConsultStatus() {
        return consultStatus;
    }

    public void setConsultStatus(int consultStatus) {
        this.consultStatus = consultStatus;
    }

    @Basic
    @Column(name = "tradeNo")
    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    @Basic
    @Column(name = "refundStatus")
    public String getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(String refundStatus) {
        this.refundStatus = refundStatus;
    }

    @Basic
    @Column(name = "medInsurance")
    public String getMedInsurance() {
        return medInsurance;
    }

    public void setMedInsurance(String medInsurance) {
        this.medInsurance = medInsurance;
    }

    @Basic
    @Column(name = "pharmacyCode")
    public String getPharmacyCode() {
        return pharmacyCode;
    }

    public void setPharmacyCode(String pharmacyCode) {
        this.pharmacyCode = pharmacyCode;
    }

    @Basic
    @Column(name = "cancelReason")
    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    @Basic
    @Column(name = "hisPreVisitNo")
    public String getHisPreVisitNo() {
        return hisPreVisitNo;
    }

    public void setHisPreVisitNo(String hisPreVisitNo) {
        this.hisPreVisitNo = hisPreVisitNo;
    }

    @Basic
    @Column(name = "registeredSeriaNo")
    public String getRegisteredSeriaNo() {
        return registeredSeriaNo;
    }

    public void setRegisteredSeriaNo(String registeredSeriaNo) {
        this.registeredSeriaNo = registeredSeriaNo;
    }

    @Basic
    @Column(name = "receptionConfirmTime")
    public Date getReceptionConfirmTime() {
        return receptionConfirmTime;
    }

    public void setReceptionConfirmTime(Date receptionConfirmTime) {
        this.receptionConfirmTime = receptionConfirmTime;
    }

    @Basic
    @Column(name = "drugs")
    public String getDrugs() {
        return drugs;
    }

    public void setDrugs(String drugs) {
        this.drugs = drugs;
    }

    @Basic
    @Column(name = "roomId")
    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    @Basic
    @Column(name = "scheduleId")
    public String getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(String scheduleId) {
        this.scheduleId = scheduleId;
    }

    @Basic
    @Column(name = "consultAskPhoneNo")
    public String getConsultAskPhoneNo() {
        return consultAskPhoneNo;
    }

    public void setConsultAskPhoneNo(String consultAskPhoneNo) {
        this.consultAskPhoneNo = consultAskPhoneNo;
    }

    @Basic
    @Column(name = "supervisonUploadFlag")
    public String getSupervisonUploadFlag() {
        return supervisonUploadFlag;
    }

    public void setSupervisonUploadFlag(String supervisonUploadFlag) {
        this.supervisonUploadFlag = supervisonUploadFlag;
    }

    @Basic
    @Column(name = "supervisonUploadTime")
    public Date getSupervisonUploadTime() {
        return supervisonUploadTime;
    }

    public void setSupervisonUploadTime(Date supervisonUploadTime) {
        this.supervisonUploadTime = supervisonUploadTime;
    }

    @Basic
    @Column(name = "photoIds")
    public String getPhotoIds() {
        return photoIds;
    }

    public void setPhotoIds(String photoIds) {
        this.photoIds = photoIds;
    }

    @Basic
    @Column(name = "startConsultFlag")
    public int getStartConsultFlag() {
        return startConsultFlag;
    }

    public void setStartConsultFlag(int startConsultFlag) {
        this.startConsultFlag = startConsultFlag;
    }

    @Basic
    @Column(name = "evaluationId")
    public int getEvaluationId() {
        return evaluationId;
    }

    public void setEvaluationId(int evaluationId) {
        this.evaluationId = evaluationId;
    }


    @Basic
    @Column(name = "confirmedDiagnosis")
    public String getConfirmedDiagnosis() {
        return confirmedDiagnosis;
    }

    public void setConfirmedDiagnosis(String confirmedDiagnosis) {
        this.confirmedDiagnosis = confirmedDiagnosis;
    }

    @Basic
    @Column(name = "pastConsultation")
    public String getPastConsultation() {
        return pastConsultation;
    }

    public void setPastConsultation(String pastConsultation) {
        this.pastConsultation = pastConsultation;
    }

    @Basic
    @Column(name = "pastRecordId")
    public String getPastRecordId() {
        return pastRecordId;
    }

    public void setPastRecordId(String pastRecordId) {
        this.pastRecordId = pastRecordId;
    }

    @Basic
    @Column(name = "pastLocalOrgId")
    public String getPastLocalOrgId() {
        return pastLocalOrgId;
    }

    public void setPastLocalOrgId(String pastLocalOrgId) {
        this.pastLocalOrgId = pastLocalOrgId;
    }

    @Basic
    @Column(name = "drugNames")
    public String getDrugNames() {
        return drugNames;
    }

    public void setDrugNames(String drugNames) {
        this.drugNames = drugNames;
    }

    @Basic
    @Column(name = "prescriptionStatus")
    public int getPrescriptionStatus() {
        return prescriptionStatus;
    }

    public void setPrescriptionStatus(int prescriptionStatus) {
        this.prescriptionStatus = prescriptionStatus;
    }

    @Basic
    @Column(name = "prescriptionOrderFlag")
    public int getPrescriptionOrderFlag() {
        return prescriptionOrderFlag;
    }

    public void setPrescriptionOrderFlag(int prescriptionOrderFlag) {
        this.prescriptionOrderFlag = prescriptionOrderFlag;
    }

    @Basic
    @Column(name = "readFlag")
    public String getReadFlag() {
        return readFlag;
    }

    public void setReadFlag(String readFlag) {
        this.readFlag = readFlag;
    }

    @Basic
    @Column(name = "visitNo")
    public String getVisitNo() {
        return visitNo;
    }

    public void setVisitNo(String visitNo) {
        this.visitNo = visitNo;
    }

    @Basic
    @Column(name = "appointmentDate")
    public Date getAppointmentDate() {
        return appointmentDate;
    }

    public void setAppointmentDate(Date appointmentDate) {
        this.appointmentDate = appointmentDate;
    }

    @Basic
    @Column(name = "appointmentTimes")
    public String getAppointmentTimes() {
        return appointmentTimes;
    }

    public void setAppointmentTimes(String appointmentTimes) {
        this.appointmentTimes = appointmentTimes;
    }

    @Basic
    @Column(name = "visitPlace")
    public String getVisitPlace() {
        return visitPlace;
    }

    public void setVisitPlace(String visitPlace) {
        this.visitPlace = visitPlace;
    }

    @Basic
    @Column(name = "historyDiagnosis")
    public String getHistoryDiagnosis() {
        return historyDiagnosis;
    }

    public void setHistoryDiagnosis(String historyDiagnosis) {
        this.historyDiagnosis = historyDiagnosis;
    }

    @Basic
    @Column(name = "receptionStatus")
    public String getReceptionStatus() {
        return receptionStatus;
    }

    public void setReceptionStatus(String receptionStatus) {
        this.receptionStatus = receptionStatus;
    }

    @Basic
    @Column(name = "appointmentNumber")
    public Integer getAppointmentNumber() {
        return appointmentNumber;
    }

    public void setAppointmentNumber(Integer appointmentNumber) {
        this.appointmentNumber = appointmentNumber;
    }

    @Basic
    @Column(name = "applyOrgId")
    public String getApplyOrgId() {
        return applyOrgId;
    }

    public void setApplyOrgId(String applyOrgId) {
        this.applyOrgId = applyOrgId;
    }

    @Basic
    @Column(name = "applyOrgName")
    public String getApplyOrgName() {
        return applyOrgName;
    }

    public void setApplyOrgName(String applyOrgName) {
        this.applyOrgName = applyOrgName;
    }

    @Basic
    @Column(name = "applyDeptId")
    public String getApplyDeptId() {
        return applyDeptId;
    }

    public void setApplyDeptId(String applyDeptId) {
        this.applyDeptId = applyDeptId;
    }

    @Basic
    @Column(name = "applyDeptName")
    public String getApplyDeptName() {
        return applyDeptName;
    }

    public void setApplyDeptName(String applyDeptName) {
        this.applyDeptName = applyDeptName;
    }

    @Basic
    @Column(name = "applyDoctorId")
    public String getApplyDoctorId() {
        return applyDoctorId;
    }

    public void setApplyDoctorId(String applyDoctorId) {
        this.applyDoctorId = applyDoctorId;
    }

    @Basic
    @Column(name = "applyDoctorName")
    public String getApplyDoctorName() {
        return applyDoctorName;
    }

    public void setApplyDoctorName(String applyDoctorName) {
        this.applyDoctorName = applyDoctorName;
    }

    @Basic
    @Column(name = "timeFlag")
    public byte getTimeFlag() {
        return timeFlag;
    }

    public void setTimeFlag(byte timeFlag) {
        this.timeFlag = timeFlag;
    }

    @Basic
    @Column(name = "patientCode")
    public String getPatientCode() {
        return patientCode;
    }

    public void setPatientCode(String patientCode) {
        this.patientCode = patientCode;
    }

    @Basic
    @Column(name = "patientIdentityCardType")
    public String getPatientIdentityCardType() {
        return patientIdentityCardType;
    }

    public void setPatientIdentityCardType(String patientIdentityCardType) {
        this.patientIdentityCardType = patientIdentityCardType;
    }

    @Basic
    @Column(name = "patientIdentityCardNumber")
    public String getPatientIdentityCardNumber() {
        return patientIdentityCardNumber;
    }

    public void setPatientIdentityCardNumber(String patientIdentityCardNumber) {
        this.patientIdentityCardNumber = patientIdentityCardNumber;
    }

    @Basic
    @Column(name = "patientMedicalCardType")
    public String getPatientMedicalCardType() {
        return patientMedicalCardType;
    }

    public void setPatientMedicalCardType(String patientMedicalCardType) {
        this.patientMedicalCardType = patientMedicalCardType;
    }

    @Basic
    @Column(name = "patientMedicalCardNumber")
    public String getPatientMedicalCardNumber() {
        return patientMedicalCardNumber;
    }

    public void setPatientMedicalCardNumber(String patientMedicalCardNumber) {
        this.patientMedicalCardNumber = patientMedicalCardNumber;
    }

    @Basic
    @Column(name = "platformMpi")
    public String getPlatformMpi() {
        return platformMpi;
    }

    public void setPlatformMpi(String platformMpi) {
        this.platformMpi = platformMpi;
    }

    @Basic
    @Column(name = "outpatientDeptCode")
    public String getOutpatientDeptCode() {
        return outpatientDeptCode;
    }

    public void setOutpatientDeptCode(String outpatientDeptCode) {
        this.outpatientDeptCode = outpatientDeptCode;
    }
}

